package com.xyy.saas.payment.merchant.core.dto;

import lombok.Getter;
import lombok.Setter;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

/**
 * 51入金白名单
 */
@Getter
@Setter
public class FBank51WhiteList {
    private String businessIdType;
    private String accountId;
    // BIND-绑定，UNBIND-解绑
    private String operateType = "BIND";
    private String acct;
    private String acctName;
    // PRIVATE-对私，PUBLIC-对公
    private String acctType;
    private String protocolNo;

    /**
     * 获取白名单列表
     */
    public List<Map<String, String>> getWhiteList() {
        List<Map<String, String>> items = new ArrayList<>();

        Map<String, String> item = new HashMap<>();
        item.put("acct", acct);
        item.put("acctName", acctName);
        item.put("businessType", acctType);
        item.put("protocolNo", protocolNo);
        items.add(item);
        return items;
    }
}
